<%@ Page Language="C#" MasterPageFile="~/app-frame.master" AutoEventWireup="true" CodeFile="TransDocCreate.aspx.cs" Inherits="Default2" Title="Untitled Page" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder3" Runat="Server">
<script language="javascript" src="js/JScript.js" type="text/javascript"></script> 
<%--    <script language="javascript" src="scripts/commonscript.js" type="text/javascript"></script>--%>
<script language="javascript" type="text/javascript">
</script>

    <asp:Label ID="lblmessage" runat="server" CssClass="controlFont"></asp:Label>
    <table cellpadding="0" cellspacing="0" width="100%" border="0" runat="Server" id="tblbtntop">
        <tr>
            <td colspan="3">
                <%--<asp:Label ID="lblmessage" runat="server" CssClass="controlFont"></asp:Label>--%></td>
        </tr>
        <tr>
            <td style="width: 34%; height: 24px;" class="pgForm_title">
                <asp:Label ID="lblheader" runat="server" Text="Transaction Document" Width="240px"></asp:Label></td>
            <td align="center" class="pgForm_title" style="width: 33%; height: 24px;">
                <asp:Button ID="btnSaveTop" runat="server" Text="Save" OnClick="btnsavetop_Click" OnClientClick="javascript:disableThis('ctl00_ContentPlaceHolder3_btnSave','Saving...'); return false;"    UseSubmitBehavior="false" CausesValidation="true"/><asp:Button ID="btnSaveNewTop" runat="server" Text="Save & Next" OnClick="btnsavenewtop_Click" UseSubmitBehavior="False"  OnClientClick="javascript:disableThis('ctl00_ContentPlaceHolder3_btnSaveNew','Saving...');" CausesValidation="true"/><asp:Button
                    ID="btnUpdateTop" runat="server" OnClick="btnupdatetop_Click" Text="Save"    OnClientClick="javascript:disableThis('ctl00_ContentPlaceHolder3_btnUpdate','Saving...'); return false;" UseSubmitBehavior="false" CausesValidation="true" /><asp:Button
                        ID="btnresettop" runat="server" OnClick="btnreset_Click" Text="Reset" UseSubmitBehavior="false" /></td>
            <td class="pgForm_title" style="width: 33%;" id="addbuttons" align="right" runat="server">
            </td>
        </tr>
        <tr>
            <td colspan="3">
            </td>
        </tr>
    </table>
    <table width="100%" border="0" runat="server" id="tblcontrols">
        <tr>
            <td style="width: 15%; height: 10px;">
            </td>
            <td style="width: 85%">
            </td>
        </tr>
        <tr>
            <td style="width: 15%" align="left">
                <asp:Label ID="Label1" runat="server" Text="Master Object" CssClass="Controllabelfont"></asp:Label></td>
            <td style="width: 85%">
                <asp:DropDownList ID="p_transaction_document_master_object" runat="server" CssClass="controlFont" AutoPostBack="True" OnSelectedIndexChanged="p_transaction_document_master_object_SelectedIndexChanged">
                </asp:DropDownList>
                <img alt="Required Field" src="Images/star.gif" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="p_transaction_document_master_object"
                    Display="None" ErrorMessage="This is a required field."></asp:RequiredFieldValidator>
                <cc1:validatorcalloutextender id="ValidatorCalloutExtender1" runat="server" highlightcssclass="maskInvalid"
                    targetcontrolid="RequiredFieldValidator1" warningiconimageurl="Images/warning_small.gif">
                    </cc1:validatorcalloutextender>
            </td>
        </tr>
        <tr>
            <td style="width: 15%;" align="left">
                <asp:Label ID="Label2" runat="server" Text="Child Object" CssClass="Controllabelfont"></asp:Label></td>
            <td style="width: 85%;">
                <asp:DropDownList ID="p_transaction_document_child_object" runat="server" CssClass="controlFont" AutoPostBack="True" OnSelectedIndexChanged="p_transaction_document_child_object_SelectedIndexChanged">
                </asp:DropDownList>
                <img alt="Required Field" src="Images/star.gif" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="p_transaction_document_child_object"
                    Display="None" ErrorMessage="This is a required field."></asp:RequiredFieldValidator>
                <cc1:validatorcalloutextender id="Validatorcalloutextender2" runat="server" highlightcssclass="maskInvalid"
                    targetcontrolid="RequiredFieldValidator2" warningiconimageurl="Images/warning_small.gif">
                </cc1:ValidatorCalloutExtender>
            </td>
        </tr>
        <tr>
            <td align="left" style="width: 15%; height: 10px;">
                <asp:Label ID="lblsort_by" runat="server" Text="Sort By" CssClass="controlLabelFont"></asp:Label></td>
            <td style="width: 85%">
                <asp:TextBox ID="p_transaction_document_sort_by" CssClass="controlFont" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
            <td align="left" style="width: 15%; height: 10px">
                <asp:Label ID="lbltotals" runat="server" CssClass="controlLabelFont" Text="Sub Total Fields"></asp:Label></td>
            <td style="width: 85%">
                <asp:DropDownList ID="DDChildFields" runat="server">
                </asp:DropDownList></td>
        </tr>
        <tr>
            <td align="left" style="width: 15%; height: 10px">
            </td>
            <td style="width: 85%">
            </td>
        </tr>
        <tr>
            <td colspan="2" style="height: 87px">            
            <table width="100%" cellpadding="0" cellspacing="0" border="0" id="TABLE1">
                    <tr>
                    <td align="left" style="width: 15%; height: 10px"></td>
                        <td style="width: 21%; height: 10px">
                            <asp:Label ID="lbltaxpercent" runat="server" Text="Master Tax Percentage" CssClass="controlLabelFont"></asp:Label></td>
                        <td style="width: 21%; height: 10px">
                            <asp:Label ID="Label4" runat="server" Text="Master Tax amount" CssClass="controlLabelFont"></asp:Label></td>
                        <td style="width: 21%; height: 10px">
                            <asp:Label ID="Label5" runat="server" Text="Child Total Field" CssClass="controlLabelFont"></asp:Label></td>
                            <td style="width: 22%; height: 10px"><asp:Label ID="Label7" runat="server" Text="Child Taxable Field" CssClass="controlLabelFont"></asp:Label></td>
                    </tr>
                    <tr>
                    <td align="left" style="width: 15%; height: 10px"> <asp:Label ID="lbltaxfields1" runat="server" Text="Tax Fields 1" CssClass="controlLabelFont"></asp:Label></td>
                        <td style="width: 21%; height: 10px">
                            <asp:DropDownList ID="dd_tax_percent_field1" runat="server" CssClass="controlFont">
                            </asp:DropDownList></td>
                        <td style="width: 21%; height: 10px"><asp:DropDownList ID="dd_tax_master_field1" runat="server" CssClass="controlFont">
                        </asp:DropDownList></td>
                        <td style="width: 21%; height: 10px"><asp:DropDownList ID="dd_tax_child_field1" runat="server" CssClass="controlFont">
                        </asp:DropDownList></td>
                        <td style="width: 22%; height: 10px"><asp:DropDownList ID="dd_taxable_field1" runat="server" CssClass="controlFont">
                        </asp:DropDownList></td>
                    </tr>
                    <tr>
                    <td align="left" style="width: 15%; height: 10px"><asp:Label ID="lbltaxfields2" runat="server" Text="Tax Fields 2" CssClass="controlLabelFont"></asp:Label></td>
                        <td style="width: 21%; height: 10px"><asp:DropDownList ID="dd_tax_percent_field2" runat="server" CssClass="controlFont">
                        </asp:DropDownList></td>
                        <td style="width: 21%; height: 10px"><asp:DropDownList ID="dd_tax_master_field2" runat="server" CssClass="controlFont">
                        </asp:DropDownList></td>
                        <td style="width: 21%; height: 10px"><asp:DropDownList ID="dd_tax_child_field2" runat="server" CssClass="controlFont">
                        </asp:DropDownList></td>
                        <td style="width: 22%; height: 10px"><asp:DropDownList ID="dd_taxable_field2" runat="server" CssClass="controlFont">
                        </asp:DropDownList></td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <table width="100%" cellpadding="0" cellspacing="0" border="0">
                    <tr>
                        <td align="left" style="width: 15%; height: 5px">
                        </td>
                        <td>
                            <asp:Label ID="Label8" runat="server" CssClass="controlLabelFont" Text="Grand Total Field in Master"></asp:Label></td>
                        <td>
                            <asp:Label ID="Label9" runat="server" CssClass="controlLabelFont" Text="Associated Total Field in Child"></asp:Label></td>
                        <td>
                            <asp:Label ID="Label10" runat="server" CssClass="controlLabelFont" Text="Show Grand Total Field"></asp:Label></td>
                    </tr>
                    <tr>
                        <td align="left" style="width: 15%; height: 5px">
                <asp:Label ID="Label6" runat="server" Text="Grand Total Fields" CssClass="controlLabelFont"></asp:Label></td>
                        <td>
                <asp:DropDownList ID="p_trans_doc_grand_total_grand_total_attrib_id" runat="server" CssClass="controlFont">
                </asp:DropDownList></td>
                        <td>
                            <asp:DropDownList ID="p_trans_doc_grand_total_associated_child_attrib_id" runat="server" CssClass="controlFont">
                            </asp:DropDownList></td>
                        <td>
                            <asp:CheckBox ID="p_trans_doc_grand_total_active" runat="server" /></td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td align="left" style="width: 15%; height:10px;">
            </td>
            <td style="width: 85%">
            </td>
        </tr>
        <tr>
            <td align="left" style="width: 15%; height: 10px">
                <asp:Label ID="Label3" runat="server" Text="Owner" CssClass="controlLabelFont"></asp:Label></td>
            <td style="width: 85%">
                <asp:DropDownList ID="p_transaction_document_owner_id" runat="server" CssClass="controlFont">
                </asp:DropDownList></td>
        </tr>
        <tr>
            <td colspan="2">
                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td id="tdtotals" runat="server" style="width: 100%">
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td align="left" colspan="2" style="height: 10px">
                </td>
        </tr>
        <tr style="padding-top:5px;">
            <td colspan="2">
                <span style="font-size: 8pt;" class="defaultFont">Fields marked with (<img src="Images/star.gif" />)
                    are required.</span></td>
        </tr>
    </table>
    <table border="0" cellpadding="0" cellspacing="0" width="100%" runat="server" id="tblbtnbottom">
        <tr>
            <td class="displaygridbottom" style="width: 34%">
            </td>
            <td class="displaygridbottom" style="width: 33%" align="center"><asp:Button ID="btnSave" runat="server" CausesValidation="true" Text="Save" OnClick="btnsave_Click"   UseSubmitBehavior="True" OnClientClick="javascript:disableThis('ctl00_ContentPlaceHolder3_btnSave','Saving...');"/><asp:Button ID="btnSaveNew" runat="server" Text="Save & Next" OnClick="btnsavenew_Click" OnClientClick="javascript:disableThis('ctl00_ContentPlaceHolder3_btnSaveNew','Saving...');" UseSubmitBehavior="false" CausesValidation="true"/><asp:Button
                    ID="btnUpdate" runat="server" OnClick="btnupdate_Click" Text="Save" CausesValidation="true" UseSubmitBehavior="True" OnClientClick="javascript:disableThis('ctl00_ContentPlaceHolder3_btnUpdate','Saving...');" /><asp:Button
                        ID="btnreset" runat="server" OnClick="btnreset_Click" Text="Reset" UseSubmitBehavior="false" /></td>
            <td class="displaygridbottom" style="width: 33%">
                </td>
        </tr>
    </table>
    <table width="100%">
        <tr>
            <td style="width: 100px">
                <asp:HiddenField ID="hfp_transaction_document_master_object" runat="server" />
                <asp:HiddenField ID="hfmasterobjecttext" runat="server" />
                <asp:HiddenField ID="hfp_transaction_document_child_object" runat="server" />
                <asp:HiddenField ID="hfchildobjecttext" runat="server" />
                <asp:HiddenField ID="p_transaction_document_af_row_id" runat="server" />
                <asp:HiddenField ID="p_transaction_document_created_by" runat="server" />
                <asp:HiddenField ID="p_transaction_document_created_at" runat="server" />
                <asp:HiddenField ID="hftotalsafrowid" runat="server" />
                 <asp:HiddenField ID="hftotalsselected" runat="server" />
                 <asp:HiddenField ID="p_trans_doc_totals_af_row_id" runat="server"/>
                 <asp:HiddenField ID="p_trans_doc_grand_total_af_row_id" runat="server"/>
                 <asp:HiddenField ID="p_tax_fields_af_row_id_1" runat="server"/>
                 <asp:HiddenField ID="p_tax_fields_af_row_id_2" runat="server"/>
                 
            </td>
        </tr>
    </table>
</asp:Content>

